package com.mine.demo.entity;

// 父类 Fruit
public class Fruit {
    protected String name;
    protected double price;

    public double calculateTotalPrice(double weight) {
        return price * weight;
    }
}









